<?php
/**
 * User: b179a9
 * Date: 9/29/11
 * Time: 6:41 PM 
 */
 
class App_Form_Comments_Form extends Zend_Form {

    function init() {

        $this->setAction('/comments/add');
        $this->setMethod('post');

        $id = new Zend_Form_Element_Hidden('id');
        $this->addElement($id);

        $news = new Zend_Form_Element_Hidden('news');
        $this->addElement($news);

        $parent = new Zend_Form_Element_Hidden('parent');
        $this->addElement($parent);

        $text = new Zend_Form_Element_Textarea('text');
        $text->setLabel('Text:');
        $this->addElement($text);

        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Save');
        $this->addElement($submit);

        $this->addElement('hash', 'csrf', array(
            'ignore' => true,
        ));

    }

}
